<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Powered by 9416.cn</title>


<!--#include file="../inc/conn.asp"-->

<script type="text/javascript" src="../ui/jquery.js"></script>
 <link rel="stylesheet" href="../ui/layui/css/layui.css" type="text/css"  />

<script type="text/javascript" src="../ui/layui/layui.js"></script>


</head>


<body>

<div class="mec_div" style="padding-top:0px; padding-bottom:20px;padding-left:20px;padding-right:20px;">
<div class="layui-tab layui-tab-brief">
<ul class="layui-tab-title site-demo-title">
<li ><a href="user_set.asp">设置</a></li>
<li ><a href="user_list.asp">会员列表</a></li>
<li class="layui-this"><a href="user_point.asp">会员积分</a></li>
   
  </ul>
  </div>
 <%jianbook.qxmsg()
' on error resume next
%>
    
  	 
  <script type="text/html" id="barDemo">
  <a class="layui-btn layui-btn-xs" lay-event="edit">查看详情</a>

  <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">操作积分</a>
</script>
  
<table class="layui-hide" id="table" lay-filter="demo"></table>
 
    
 
	
</div> 


<script>
layui.use('table', function(){
  var table = layui.table;

  //方法级渲染
  table.render({
    elem: '#table'
    ,url: '../inc/admin.asp?act=user_point'
	 ,toolbar: '#toolbarDemo'
    ,title: '积分获取列表'
	,cellMinWidth: 100 
	
    ,cols: [[
	{field:'uid', title: '会员账号',  sort: true}
	 ,{field:'point', title: '积分',   sort: true}
	 ,{fixed: 'right', title:'操作', toolbar: '#barDemo'}
	
	
     
	   
    ]]
    ,id: 'testReload'
    ,page: true
  ,limit:20
  });

  

  
    //监听行工具事件
  table.on('tool(demo)', function(obj){
    var data = obj.data;
   var pid=obj.data["uid"]
    if(obj.event === 'del'){
  tc(pid+'积分操作','user_point_cz.asp?act=cz&id='+pid,500,500)
	  
    } else if(obj.event === 'edit'){
     
	 tc(pid+'积分详情','user_point_cz.asp?act=view&id='+pid,500,500)
	 
    }
  });
  
  
  
  
  
  

});
</script>
<script type="text/javascript" src="../ui/pc.js"></script>		

</body>

</html>
